package com.hand.liut.service;

import com.hand.liut.entity.CommonResult;
import com.hand.liut.entity.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: 刘涛
 * @Description: TODO
 * @DateTime: 2021/7/20 10:41
 **/
@Component
@FeignClient(value = "cloud-provider-payment")
public interface FeignPaymentService {

  @GetMapping("/find/{id}")
  public CommonResult<Payment> findById(@PathVariable("id") Long id);
}
